﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Framework.LoginAdmin.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head1" runat="server">
    <title>Login - Administrator</title>
    <link href="/LoginAdmin/Css/Default.css" rel="stylesheet" type="text/css" />
    <script src="/LoginAdmin/Js/jquery-1.7.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(function () {
                setInterval(KeepSessionAlive, 60000);
            });
            function KeepSessionAlive() {
                $.post('/Resources/KeepSessionAlive.ashx', null, function () {
                });
            }
        });
    </script>
</head>
<body class="myBody">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%= form1.ClientID %>").attr("action", window.location.pathname + window.location.search);
        });
    </script>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <center>
                    <div id="header">
                    </div>
                    <div id="frame">
                        <div id="layout">
                            <div id="loginframe">
                                <div id="caption">
                                    Đăng nhập quản trị website</div>
                                <div id="content">
                                    <table cellpadding="5" cellspacing="0" class="Login">
                                        <tr>
                                            <td align="right" width="120px">
                                                Tên đăng nhập:
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtUsername" runat="server" Width="180"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" width="120px">
                                                Mật khẩu:
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtPassword" runat="server" Width="180" TextMode="Password"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkRememberMe" runat="server" Text="Nhớ mật khẩu 1 tuần" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="1" style="text-align: center">
                                                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                                    <ProgressTemplate>
                                                        <img src="Images/indicator.gif" align="middle" alt="Loading..." />
                                                        <span style="font-family: Verdana; font-size: 11px; font-weight: bold">Loading ... &nbsp;</span>
                                                    </ProgressTemplate>
                                                </asp:UpdateProgress>
                                            </td>
                                            <td>
                                                <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập" 
                                                    onclick="btnLogin_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td></td>
                                            <td align="right" style="text-align: left; color: Blue">
                                                <span><a class="ForgetPassword" href="ForgetPassword.aspx">Click vào đây nếu quên mật khẩu?</a></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2" style="text-align: center; color: maroon">
                                                <span id="lblMsg" runat="server"></span>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="footer">
                        Copyright 2012 DigiSky. All right reversed.</div>
                </center>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
